package gui;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JSplitPane;
import javax.swing.JTextPane;
import javax.swing.border.EmptyBorder;

public class Help extends JFrame
{

   /**
    * 
    */
   private static final long serialVersionUID = 1L;
   /**
    * Launch the application.
    */
   public static void main(String[] args)
   {
      EventQueue.invokeLater(new Runnable()
      {
         @Override
         public void run()
         {
            try
            {
               Help frame = new Help();
               frame.setVisible(true);
            }
            catch (Exception e)
            {
               e.printStackTrace();
            }
         }
      });
   }

   private JPanel contentPane;

   /**
    * Create the frame.
    */
   public Help()
   {
      setDefaultCloseOperation(DISPOSE_ON_CLOSE);
      setBounds(100, 100, 800, 600);
      contentPane = new JPanel();
      contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
      contentPane.setLayout(new BorderLayout(0, 0));
      setContentPane(contentPane);

      JTextPane txtpnHelpMenuFor = new JTextPane();
      txtpnHelpMenuFor.setText("Help Menu for this Application TSET");
      contentPane.add(txtpnHelpMenuFor, BorderLayout.NORTH);

      JSplitPane splitPane = new JSplitPane();
      splitPane.setResizeWeight(0.0);
      splitPane.setOneTouchExpandable(true);
      splitPane.setForeground(Color.LIGHT_GRAY);
      splitPane.setContinuousLayout(true);
      splitPane.setDividerLocation(150);
      contentPane.add(splitPane, BorderLayout.CENTER);

      JTextPane menu = new JTextPane();

      menu.setText("Testubg por");
      splitPane.setLeftComponent(menu);

      JTextPane txtpnThisThreadIs = new JTextPane();
      txtpnThisThreadIs.setText("This thread is more than three months old\nNo one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.");
      splitPane.setRightComponent(txtpnThisThreadIs);

   }

}
